#pragma once
#include "cocos2d.h"
#include "PhiysicsSprite.h"
#include "PhysicsLayer.h"

class CMainScreen : public cocos2d::CCLayer
{
public:
	virtual bool init();  
	static cocos2d::CCScene* scene();
	void GoToHWSPressed(CCObject* pSender);
	unsigned int m_nZOrder;
	CCSpriteBatchNode* m_pColobokNode;
	CCSpriteBatchNode* m_pCloudNode;
	CPhysicsLayer* pPhysicsLayer;
	CREATE_FUNC(CMainScreen);

private:
	void AddClouds(int NumOfInstances = 10);
	void CloudMoveFinished(CCNode* sender);
	void MoveToLeft(CCObject* pSender);
	void MoveToRight(CCObject* pSender);
	void initCar();
};

